<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增线路</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
      <input type="hidden" name='id' value="{$wdata.id}"/>
      <div class="form-item">
            <label class="item-label">发出国家选择<span class="check-tips">（必须选择正确的发出国家哦！）</span></label>
            <div class="controls">
                    <select name="sendcountryid">
                        <foreach name="countrylist" item="vo" >
                               <option value="{$vo.country_id}"<if condition="$vo.country_id eq $wdata.sendcountryid ">selected</if>>[{$vo.code}] {$vo.name_chinese}</option>
                        </foreach>     
                    </select>
            </div>
            <label class="item-label">收件国家选择<span class="check-tips">（必须选择正确的收件国家哦！）</span></label>
            <div class="controls">
                    <select name="acceptcountryid">
                        <foreach name="countrylist2" item="vo" >
                               <option value="{$vo.country_id}" <if condition="$vo.country_id eq $wdata.acceptcountryid ">selected</if>>[{$vo.code}] {$vo.name_chinese}</option>
                        </foreach>     
                    </select>
            </div>
           
	</div>
       <h2>新增物流线路</h2>
        <hr/>
          <div class="form-item">
            <label class="item-label">线路名称<span class="check-tips">（线路名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$wdata.name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">物流公司名称<span class="check-tips">（物流公司名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="expname" value="{$wdata.expname}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">物流公司网址<span class="check-tips">（物流公司网址）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="expurl" value="{$wdata.expurl}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">首重重量g<span class="check-tips">（请输入首重的重量g）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="fweight" value="{$wdata.fweight}">
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">首重价格<span class="check-tips">（请输入首重的价格g）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="fprice" value="{$wdata.fprice}">
            </div>
        </div>
                <div class="form-item">
            <label class="item-label">续重重量g<span class="check-tips">（请输入续重单位重量g）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="cweight" value="{$wdata.cweight}">
            </div>
        </div>
                <div class="form-item">
            <label class="item-label">续重单价<span class="check-tips">（请输入续重单价）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="cprice" value="{$wdata.cprice}">
            </div>
        </div>        
 
         <div class="form-item">
            <label class="item-label">线路描述<span class="check-tips">（线路描述）</span></label>
            <div class="controls">
                <label class="textarea input-large">
                    <textarea name="remark">{$wdata.remark}</textarea>
                </label>
            </div>
        </div>       
        
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Expressline/index')}');
    </script>
</block>
